package com.company;

import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.ResourceBundle;

public class JavaI18n {
    public static void main(String[] args) {
        ResourceBundle rb = ResourceBundle.getBundle("InfoI18n");
        String val = rb.getString("info");
        String dateString = (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(new Date());
        System.out.println(MessageFormat.format(val, "AkabaSiniti", "www.chiyuxinyi.com", 20, dateString));
    }
}
